package leetCode.sum;


/**
 * 递归调用解决力扣203题
 */
public class Solution {

    public ListNode removeElements(ListNode head, int val) {
        if (head == null){
            return null;
        }
        head.next =removeElements(head.next,val);
        return head.val == val ? head.next : head;
    }

    public static void main(String[] args) {
        int[] arr = {1,2,2,3,4,5,5};
    }


}

